/**
 * Created by no1 on 2014/8/29.
 */
'use strict';
var session = require('koa-generic-session');
var md5 = require('md5');
var F = require('../common/function');
var commPost = require('../common/post');
var commUser = require('../common/user');
var redisClient = require('redis').createClient();
var wrapper = require('co-redis');
var redisCo = wrapper(redisClient);
var uid2 = require('uid2');


module.exports = function (app) {
    app.get('/md5/:varmd', function* () {
        var md = this.params.varmd;
        this.body = md5.digest_s(md);
    });
};
